package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysUserReportMapper;
import com.ruoyi.system.domain.SysUserReport;
import com.ruoyi.system.service.ISysUserReportService;

/**
 * 举报Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-24
 */
@Service
public class SysUserReportServiceImpl implements ISysUserReportService 
{
    @Autowired
    private SysUserReportMapper sysUserReportMapper;

    /**
     * 查询举报
     * 
     * @param id 举报主键
     * @return 举报
     */
    @Override
    public SysUserReport selectSysUserReportById(String id)
    {
        return sysUserReportMapper.selectSysUserReportById(id);
    }

    /**
     * 查询举报列表
     * 
     * @param sysUserReport 举报
     * @return 举报
     */
    @Override
    public List<SysUserReport> selectSysUserReportList(SysUserReport sysUserReport)
    {
        return sysUserReportMapper.selectSysUserReportList(sysUserReport);
    }

    /**
     * 新增举报
     * 
     * @param sysUserReport 举报
     * @return 结果
     */
    @Override
    public int insertSysUserReport(SysUserReport sysUserReport)
    {
        return sysUserReportMapper.insertSysUserReport(sysUserReport);
    }

    /**
     * 修改举报
     * 
     * @param sysUserReport 举报
     * @return 结果
     */
    @Override
    public int updateSysUserReport(SysUserReport sysUserReport)
    {
        return sysUserReportMapper.updateSysUserReport(sysUserReport);
    }

    /**
     * 批量删除举报
     * 
     * @param ids 需要删除的举报主键
     * @return 结果
     */
    @Override
    public int deleteSysUserReportByIds(String[] ids)
    {
        return sysUserReportMapper.deleteSysUserReportByIds(ids);
    }

    /**
     * 删除举报信息
     * 
     * @param id 举报主键
     * @return 结果
     */
    @Override
    public int deleteSysUserReportById(String id)
    {
        return sysUserReportMapper.deleteSysUserReportById(id);
    }

    @Override
    public Integer getCount() {
        return sysUserReportMapper.getCount();
    }
}
